Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 104 kB / 17.58 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.761/1.761, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 55.92 kB / 280.7 MB, free: 3.094 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1133, allocations: 46.63 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.00647/0.1198, allocations: 4.712 MB / 332.1 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003207/0.1231, allocations: 1.261 MB / 333.4 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001072/0.1242, allocations: 15.94 kB / 333.4 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007336/0.125, allocations: 114.8 kB / 333.5 MB, free: 14.24 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001373/0.1264, allocations: 241.7 kB / 333.7 MB, free: 14 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001242/0.1277, allocations: 307.5 kB / 334 MB, free: 13.7 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001574/0.1293, allocations: 1.044 MB / 335.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005218/0.1298, allocations: 266.4 kB / 335.3 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008423/0.1307, allocations: 406.6 kB / 335.7 MB, free: 11.98 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005679/0.1313, allocations: 450.1 kB / 336.2 MB, free: 11.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001347/0.1314, allocations: 88 kB / 336.2 MB, free: 11.45 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002501/0.1317, allocations: 108 kB / 336.3 MB, free: 11.35 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001686/0.1318, allocations: 179.4 kB / 336.5 MB, free: 11.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004079/0.1322, allocations: 437.8 kB / 337 MB, free: 10.74 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009628/0.1332, allocations: 0.9657 MB / 337.9 MB, free: 9.773 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1332, allocations: 0 / 337.9 MB, free: 9.773 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1332, allocations: 0 / 337.9 MB, free: 9.773 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1333, allocations: 0 / 337.9 MB, free: 9.773 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 152 * Number of variables: 152 Notification: Performance of Generate backend data structure: time 0.002359/0.1356, allocations: 1.211 MB / 339.1 MB, free: 8.492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1357, allocations: 8.031 kB / 339.1 MB, free: 8.484 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001283/0.1358, allocations: 106.7 kB / 339.2 MB, free: 8.371 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.136, allocations: 91.84 kB / 339.3 MB, free: 8.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005547/0.1366, allocations: 461.5 kB / 339.8 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.174e-05/0.1366, allocations: 45.69 kB / 339.8 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1367, allocations: 60.38 kB / 339.9 MB, free: 7.688 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001316/0.138, allocations: 0.6429 MB / 340.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.1381, allocations: 0 / 340.5 MB, free: 7.039 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/0.1381, allocations: 23.98 kB / 340.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.1382, allocations: 16 kB / 340.6 MB, free: 7 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.1398, allocations: 0.6765 MB / 341.2 MB, free: 6.32 MB / 286.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003814/0.1437, allocations: 2.331 MB / 343.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001481/0.1452, allocations: 0.5904 MB / 344.2 MB, free: 3.238 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007782/0.1459, allocations: 330 kB / 344.5 MB, free: 2.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.728e-05/0.146, allocations: 16.36 kB / 344.5 MB, free: 2.898 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001178/0.1472, allocations: 425.4 kB / 344.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.116e-06/0.1472, allocations: 0 / 344.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.07/0.2172, allocations: 15.4 MB / 360.3 MB, free: 2.961 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.2174, allocations: 149.5 kB / 360.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007267/0.2181, allocations: 498.8 kB / 361 MB, free: 2.285 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002333/0.2184, allocations: 49.69 kB / 361 MB, free: 2.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000353/0.2187, allocations: 367.9 kB / 361.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004833/0.2192, allocations: 303.5 kB / 361.7 MB, free: 1.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004827/0.2197, allocations: 182.5 kB / 361.8 MB, free: 1.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002005/0.2199, allocations: 382.8 kB / 362.2 MB, free: 0.9961 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/0.222, allocations: 0.7202 MB / 362.9 MB, free: 284 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002174/0.2242, allocations: 0.9226 MB / 363.9 MB, free: 15.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004168/0.2284, allocations: 1.658 MB / 365.5 MB, free: 13.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-05/0.2284, allocations: 4 kB / 365.5 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02351/0.252, allocations: 5.35 MB / 370.9 MB, free: 8.145 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.2522, allocations: 63.41 kB / 370.9 MB, free: 8.07 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.039e-05/0.2523, allocations: 4 kB / 370.9 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03453/0.2868, allocations: 6.847 MB / 377.8 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008667/0.2878, allocations: 143.7 kB / 377.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2273/0.5151, allocations: 3.153 MB / 381.1 MB, free: 52.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002176/0.5173, allocations: 178.2 kB / 381.2 MB, free: 52.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.5175, allocations: 44.41 kB / 381.3 MB, free: 52.41 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 10 (V2.signalSource.count,$PRE.V2.signalSource.count,V2.signalSource.T_start,$PRE.V2.signalSource.T_start,V1.signalSource.count,$PRE.V1.signalSource.count,V1.signalSource.T_start,$PRE.V1.signalSource.T_start,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0005271/0.5181, allocations: 227.9 kB / 381.5 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001999/0.5183, allocations: 74.91 kB / 381.6 MB, free: 52.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02326/0.5415, allocations: 5.11 MB / 386.7 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.292e-05/0.5416, allocations: 13.39 kB / 386.7 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.5416, allocations: 1.406 kB / 386.7 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.827e-05/0.5417, allocations: 3.562 kB / 386.7 MB, free: 51.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001638/0.5433, allocations: 1.083 MB / 387.8 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5433, allocations: 3.891 kB / 387.8 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005074/0.5439, allocations: 96.62 kB / 387.9 MB, free: 51.03 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03133/0.5752, allocations: 6.804 MB / 394.7 MB, free: 49.51 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001964/0.5754, allocations: 23.67 kB / 394.7 MB, free: 49.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004831/0.5803, allocations: 3.038 MB / 397.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.5803, allocations: 6.906 kB / 397.8 MB, free: 47.46 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02127/0.6016, allocations: 5.983 MB / 403.7 MB, free: 41.76 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002701/0.6019, allocations: 149.5 kB / 403.9 MB, free: 41.6 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001634/0.6021, allocations: 16 kB / 403.9 MB, free: 41.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001281/0.6034, allocations: 171.8 kB / 404.1 MB, free: 41.42 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002569/0.6036, allocations: 96.88 kB / 404.2 MB, free: 41.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.607e-05/0.6037, allocations: 35.97 kB / 404.2 MB, free: 41.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003506/0.6041, allocations: 338.8 kB / 404.5 MB, free: 40.96 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6041, allocations: 0 / 404.5 MB, free: 40.96 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007393/0.6048, allocations: 253.1 kB / 404.8 MB, free: 40.71 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (HeatCapacitor1.T) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,V1.signalSource.T_start,V1.signalSource.count,V2.signalSource.T_start,V2.signalSource.count) * Number of discrete states: 2 (V2.signalSource.count,V1.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(5,32), (5,36)} Notification: Performance of Backend phase and start with SimCode phase: time 0.02206/0.6269, allocations: 6.575 MB / 411.4 MB, free: 34.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006415/0.6334, allocations: 2.179 MB / 413.5 MB, free: 31.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/0.6335, allocations: 0 / 413.5 MB, free: 31.91 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003081/0.6365, allocations: 1.098 MB / 414.6 MB, free: 30.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008255/0.6374, allocations: 131.7 kB / 414.8 MB, free: 30.71 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04828/0.6857, allocations: 15.95 MB / 430.7 MB, free: 14.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.6862, allocations: 0.935 MB / 431.7 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004783/0.6867, allocations: 54.08 kB / 431.7 MB, free: 13.51 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.687, allocations: 263.4 kB / 432 MB, free: 13.25 MB / 318.1 MB Notification: Performance of SimCode: time 1.433e-06/0.687, allocations: 0 / 432 MB, free: 13.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06975/0.7568, allocations: 28.79 MB / 460.8 MB, free: 384 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.28, allocations: 7.922 kB / 460.8 MB, free: 376 kB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingNPN_OrGate/HeatingNPN_OrGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches