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.0009728/0.0009728, allocations: 96.27 kB / 17.3 MB, free: 6.34 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.001301/0.001301, allocations: 177 kB / 18.2 MB, free: 5.527 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.333/1.333, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.0004416/0.0004416, allocations: 8 kB / 281.5 MB, free: 3.32 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08028/0.08073, allocations: 47.59 MB / 329.1 MB, free: 3.66 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.005069/0.08585, allocations: 4.318 MB / 333.4 MB, free: 15.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002721/0.08862, allocations: 1.261 MB / 334.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005635/0.08921, allocations: 11.94 kB / 334.6 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003155/0.08955, allocations: 83.31 kB / 334.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006529/0.09021, allocations: 210.2 kB / 334.9 MB, free: 13.74 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006863/0.09091, allocations: 259.6 kB / 335.2 MB, free: 13.49 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.09201, allocations: 0.9936 MB / 336.2 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000343/0.09236, allocations: 215.3 kB / 336.4 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004287/0.0928, allocations: 358.5 kB / 336.7 MB, free: 11.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004114/0.09322, allocations: 406.1 kB / 337.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.852e-05/0.09331, allocations: 44 kB / 337.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001572/0.09347, allocations: 67.98 kB / 337.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.09361, allocations: 143.4 kB / 337.4 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003223/0.09394, allocations: 415.5 kB / 337.8 MB, free: 10.85 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007103/0.09465, allocations: 0.9069 MB / 338.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.09467, allocations: 0 / 338.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.09467, allocations: 0 / 338.7 MB, free: 9.941 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.09469, allocations: 0 / 338.7 MB, free: 9.941 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.00204/0.09674, allocations: 1.11 MB / 339.8 MB, free: 8.766 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.09678, allocations: 16.02 kB / 339.8 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001102/0.0969, allocations: 102.6 kB / 339.9 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.09703, allocations: 87.91 kB / 340 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005437/0.09758, allocations: 461.5 kB / 340.5 MB, free: 8.062 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.37e-05/0.09762, allocations: 45.69 kB / 340.5 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001014/0.09773, allocations: 68.27 kB / 340.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001302/0.09904, allocations: 0.6702 MB / 341.2 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.09907, allocations: 0 / 341.2 MB, free: 7.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.033e-05/0.09913, allocations: 28 kB / 341.3 MB, free: 7.246 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.09915, allocations: 12 kB / 341.3 MB, free: 7.234 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001649/0.1008, allocations: 0.7351 MB / 342 MB, free: 6.5 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.003389/0.1042, allocations: 2.374 MB / 344.4 MB, free: 3.973 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001427/0.1056, allocations: 0.6373 MB / 345 MB, free: 3.324 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007406/0.1064, allocations: 358 kB / 345.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.273e-05/0.1064, allocations: 20.41 kB / 345.4 MB, free: 2.953 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009136/0.1074, allocations: 453.4 kB / 345.8 MB, free: 2.484 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 3.126e-06/0.1074, allocations: 0 / 345.8 MB, free: 2.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06826/0.1756, allocations: 16.74 MB / 362.6 MB, free: 1.648 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.1758, allocations: 145.5 kB / 362.7 MB, free: 1.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007659/0.1766, allocations: 0.491 MB / 363.2 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.1769, allocations: 41.7 kB / 363.3 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004147/0.1773, allocations: 363.9 kB / 363.6 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004316/0.1778, allocations: 315.5 kB / 363.9 MB, free: 260 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001954/0.178, allocations: 85.67 kB / 364 MB, free: 168 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.1782, allocations: 382.8 kB / 364.4 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002214/0.1804, allocations: 0.7866 MB / 365.2 MB, free: 15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002299/0.1827, allocations: 1.008 MB / 366.2 MB, free: 13.91 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004375/0.1871, allocations: 1.814 MB / 368 MB, free: 12.01 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.1871, allocations: 4 kB / 368 MB, free: 12.01 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02457/0.2117, allocations: 5.718 MB / 373.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001007/0.2118, allocations: 63.39 kB / 373.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.044e-05/0.2119, allocations: 4 kB / 373.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1763/0.3882, allocations: 7.317 MB / 381.1 MB, free: 51.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008575/0.3891, allocations: 170.4 kB / 381.3 MB, free: 51.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00696/0.3961, allocations: 3.23 MB / 384.5 MB, free: 50.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.3978, allocations: 221.2 kB / 384.7 MB, free: 50.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.398, allocations: 43.27 kB / 384.7 MB, free: 50.25 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.0004284/0.3984, allocations: 227.7 kB / 385 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.3986, allocations: 76.61 kB / 385 MB, free: 50.13 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02292/0.4215, allocations: 5.467 MB / 390.5 MB, free: 49.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.01e-05/0.4216, allocations: 13.41 kB / 390.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.297e-06/0.4216, allocations: 4.531 kB / 390.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4216, allocations: 8.625 kB / 390.5 MB, free: 49.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001131/0.4228, allocations: 1.087 MB / 391.6 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.4228, allocations: 0 / 391.6 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005089/0.4233, allocations: 119.7 kB / 391.7 MB, free: 49.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03178/0.4551, allocations: 7.286 MB / 399 MB, free: 47.05 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001538/0.4553, allocations: 25.66 kB / 399 MB, free: 47.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004721/0.46, allocations: 3.106 MB / 402.2 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.46, allocations: 0 / 402.2 MB, free: 43.89 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02291/0.4829, allocations: 6.429 MB / 408.6 MB, free: 37.46 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001722/0.4832, allocations: 145.3 kB / 408.7 MB, free: 37.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001722/0.4833, allocations: 20 kB / 408.7 MB, free: 37.28 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/0.4847, allocations: 207.8 kB / 408.9 MB, free: 37.07 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/0.485, allocations: 100.9 kB / 409 MB, free: 36.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.537e-05/0.485, allocations: 31.97 kB / 409.1 MB, free: 36.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002816/0.4853, allocations: 338.6 kB / 409.4 MB, free: 36.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4853, allocations: 4 kB / 409.4 MB, free: 36.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006687/0.486, allocations: 256.9 kB / 409.7 MB, free: 36.37 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.02275/0.5088, allocations: 7.01 MB / 416.7 MB, free: 29.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.006188/0.515, allocations: 2.33 MB / 419 MB, free: 26.98 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.515, allocations: 0 / 419 MB, free: 26.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00312/0.5181, allocations: 1.159 MB / 420.2 MB, free: 25.83 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007324/0.5189, allocations: 121.1 kB / 420.3 MB, free: 25.72 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05015/0.5691, allocations: 17.16 MB / 437.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002807/0.5694, allocations: 0.9389 MB / 438.4 MB, free: 7.367 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.5697, allocations: 58.06 kB / 438.4 MB, free: 7.309 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000266/0.57, allocations: 259.3 kB / 438.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of SimCode: time 5.41e-07/0.57, allocations: 0 / 438.7 MB, free: 7.055 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04106/0.6111, allocations: 26.67 MB / 465.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.6113, allocations: 245.2 kB / 465.6 MB, free: 12.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.788/3.399, allocations: 0 / 465.6 MB, free: 12.07 MB / 350.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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches