Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009562/0.0009562, allocations: 175 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.34/1.34, allocations: 205.4 MB / 222.9 MB, free: 9.027 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008553/0.0008556, allocations: 91.98 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002963/0.0002964, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1899/0.1902, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.003943/0.1942, allocations: 4.076 MB / 379.3 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.1963, allocations: 1.234 MB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003135/0.1966, allocations: 9.375 kB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002011/0.1968, allocations: 84.7 kB / 380.6 MB, free: 41.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000337/0.1972, allocations: 209 kB / 380.8 MB, free: 40.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004921/0.1977, allocations: 218 kB / 381 MB, free: 40.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007685/0.1985, allocations: 0.9449 MB / 381.9 MB, free: 40.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003435/0.1988, allocations: 217.1 kB / 382.2 MB, free: 40.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003703/0.1992, allocations: 348.1 kB / 382.5 MB, free: 39.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003897/0.1996, allocations: 407.9 kB / 382.9 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.97e-05/0.1997, allocations: 44.44 kB / 382.9 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001838/0.1999, allocations: 67.81 kB / 383 MB, free: 39.57 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001105/0.2, allocations: 141.8 kB / 383.1 MB, free: 39.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003349/0.2003, allocations: 400 kB / 383.5 MB, free: 39.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005355/0.2009, allocations: 0.7131 MB / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2009, allocations: 0 / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2009, allocations: 0 / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2009, allocations: 1 kB / 384.2 MB, free: 38.64 MB / 298.7 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.002078/0.203, allocations: 1.114 MB / 385.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.737e-05/0.2031, allocations: 9.094 kB / 385.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001127/0.2032, allocations: 102.4 kB / 385.5 MB, free: 37.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.2033, allocations: 84.59 kB / 385.6 MB, free: 37.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004811/0.2038, allocations: 468.6 kB / 386 MB, free: 37.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.861e-05/0.2039, allocations: 46.34 kB / 386.1 MB, free: 37.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.658e-05/0.204, allocations: 61.62 kB / 386.1 MB, free: 37.18 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001311/0.2053, allocations: 0.6664 MB / 386.8 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.2053, allocations: 0 / 386.8 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.734e-05/0.2054, allocations: 29.3 kB / 386.8 MB, free: 36.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.474e-05/0.2054, allocations: 14.91 kB / 386.8 MB, free: 36.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001539/0.2069, allocations: 0.7263 MB / 387.6 MB, free: 36.16 MB / 298.7 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.003067/0.21, allocations: 2.382 MB / 389.9 MB, free: 33.63 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.2113, allocations: 0.6335 MB / 390.6 MB, free: 32.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006499/0.212, allocations: 358.9 kB / 390.9 MB, free: 32.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.113e-05/0.2121, allocations: 20.34 kB / 390.9 MB, free: 32.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000862/0.2129, allocations: 457.4 kB / 391.4 MB, free: 32.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.816e-06/0.2129, allocations: 0 / 391.4 MB, free: 32.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06299/0.2759, allocations: 16.72 MB / 408.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.276, allocations: 145.5 kB / 408.2 MB, free: 15.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005028/0.2766, allocations: 494.8 kB / 408.7 MB, free: 14.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001581/0.2767, allocations: 45.7 kB / 408.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001625/0.2769, allocations: 360 kB / 409.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001816/0.2771, allocations: 315.4 kB / 409.4 MB, free: 13.94 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.471e-05/0.2772, allocations: 20 kB / 409.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.2773, allocations: 382.8 kB / 409.8 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001778/0.279, allocations: 0.7944 MB / 410.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001834/0.2809, allocations: 1.002 MB / 411.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003576/0.2845, allocations: 1.814 MB / 413.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.2845, allocations: 3.938 kB / 413.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02072/0.3052, allocations: 5.624 MB / 419.1 MB, free: 4.109 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.007e-05/0.3053, allocations: 67.39 kB / 419.1 MB, free: 4.031 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3054, allocations: 4.047 kB / 419.1 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03231/0.3377, allocations: 7.324 MB / 426.5 MB, free: 12.69 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007451/0.3385, allocations: 175.8 kB / 426.6 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006439/0.3449, allocations: 3.227 MB / 429.9 MB, free: 9.234 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.3466, allocations: 219.8 kB / 430.1 MB, free: 9.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000137/0.3467, allocations: 43.98 kB / 430.1 MB, free: 8.977 MB / 314.7 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 ($whenCondition2,$whenCondition1,$PRE.V1.signalSource.T_start,V1.signalSource.T_start,$PRE.V1.signalSource.count,V1.signalSource.count,$PRE.V2.signalSource.T_start,V2.signalSource.T_start,$PRE.V2.signalSource.count,V2.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 32} Notification: Performance of prepare postOptimizeDAE: time 0.0003919/0.3471, allocations: 217.7 kB / 430.3 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.3473, allocations: 83.06 kB / 430.4 MB, free: 8.672 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02153/0.3688, allocations: 5.454 MB / 435.9 MB, free: 3.188 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.3689, allocations: 12 kB / 435.9 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3689, allocations: 0 / 435.9 MB, free: 3.176 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/0.3689, allocations: 7.969 kB / 435.9 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001597/0.3705, allocations: 1.087 MB / 437 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.3706, allocations: 0 / 437 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005861/0.3712, allocations: 127.9 kB / 437.1 MB, free: 1.906 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03244/0.4036, allocations: 7.281 MB / 444.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002197/0.4039, allocations: 27.97 kB / 444.4 MB, free: 10.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005511/0.4094, allocations: 3.103 MB / 447.5 MB, free: 7.422 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.4094, allocations: 7.938 kB / 447.5 MB, free: 7.414 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02382/0.4333, allocations: 6.409 MB / 453.9 MB, free: 0.9727 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.4336, allocations: 148.1 kB / 454.1 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002678/0.4339, allocations: 24.11 kB / 454.1 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.4354, allocations: 207.9 kB / 454.3 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003356/0.4357, allocations: 100.8 kB / 454.4 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/0.4358, allocations: 35.98 kB / 454.4 MB, free: 460 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003818/0.4362, allocations: 330.9 kB / 454.8 MB, free: 132 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4362, allocations: 0 / 454.8 MB, free: 132 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008775/0.4371, allocations: 264 kB / 455 MB, free: 15.87 MB / 346.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {5 32,5 36} Notification: Performance of Backend phase and start with SimCode phase: time 0.02393/0.4611, allocations: 6.988 MB / 462 MB, free: 8.844 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006755/0.4679, allocations: 2.321 MB / 464.3 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4679, allocations: 0 / 464.3 MB, free: 6.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00352/0.4714, allocations: 1.16 MB / 465.5 MB, free: 5.336 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009022/0.4724, allocations: 126.2 kB / 465.6 MB, free: 5.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03134/0.5037, allocations: 10.22 MB / 475.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004718/0.5042, allocations: 0.9389 MB / 476.8 MB, free: 9.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003912/0.5046, allocations: 259.3 kB / 477 MB, free: 9.629 MB / 362.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5047, allocations: 3.938 kB / 477 MB, free: 9.625 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.871/4.375, allocations: 18.57 MB / 495.6 MB, free: 7.031 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingNPN_OrGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches