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.001124/0.001124, allocations: 113.6 kB / 17.28 MB, free: 6.219 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.001052/0.001052, allocations: 185.3 kB / 18.2 MB, free: 5.301 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.427/1.427, allocations: 205.1 MB / 224 MB, free: 12.36 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.001271/0.001271, allocations: 51.92 kB / 280.2 MB, free: 3.383 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1347, allocations: 46.63 MB / 326.9 MB, free: 4.68 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate): time 0.007162/0.1419, allocations: 4.731 MB / 331.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003004/0.145, allocations: 1.265 MB / 332.9 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003299/0.1454, allocations: 11.94 kB / 332.9 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003424/0.1457, allocations: 79.36 kB / 333 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004996/0.1463, allocations: 218.1 kB / 333.2 MB, free: 14.34 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007491/0.147, allocations: 255.7 kB / 333.4 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001043/0.1481, allocations: 1.048 MB / 334.5 MB, free: 13.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004513/0.1486, allocations: 262.4 kB / 334.7 MB, free: 12.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004711/0.149, allocations: 406.5 kB / 335.1 MB, free: 12.37 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005226/0.1496, allocations: 454.1 kB / 335.6 MB, free: 11.92 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001249/0.1497, allocations: 84 kB / 335.7 MB, free: 11.84 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002109/0.1499, allocations: 112 kB / 335.8 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.1501, allocations: 183.4 kB / 335.9 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.1505, allocations: 437.8 kB / 336.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009892/0.1515, allocations: 0.958 MB / 337.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.828e-06/0.1515, allocations: 3.984 kB / 337.3 MB, free: 10.16 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.855e-06/0.1516, allocations: 3.938 kB / 337.3 MB, free: 10.15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.1516, allocations: 4 kB / 337.3 MB, free: 10.15 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.002684/0.1543, allocations: 1.207 MB / 338.5 MB, free: 8.871 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.191e-05/0.1543, allocations: 12.03 kB / 338.6 MB, free: 8.859 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001707/0.1545, allocations: 102.7 kB / 338.7 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001669/0.1547, allocations: 87.91 kB / 338.7 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007039/0.1554, allocations: 461.4 kB / 339.2 MB, free: 8.172 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.869e-05/0.1555, allocations: 45.69 kB / 339.2 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001123/0.1556, allocations: 60.38 kB / 339.3 MB, free: 8.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001413/0.157, allocations: 0.639 MB / 339.9 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.308e-05/0.1571, allocations: 0 / 339.9 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-05/0.1571, allocations: 28 kB / 340 MB, free: 7.395 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.646e-05/0.1572, allocations: 12 kB / 340 MB, free: 7.383 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001653/0.1588, allocations: 0.6843 MB / 340.7 MB, free: 6.699 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.003986/0.1628, allocations: 2.327 MB / 343 MB, free: 4.223 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001443/0.1643, allocations: 0.5827 MB / 343.6 MB, free: 3.629 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007408/0.165, allocations: 334 kB / 343.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.94e-05/0.1651, allocations: 12.38 kB / 343.9 MB, free: 3.289 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.1662, allocations: 421.4 kB / 344.3 MB, free: 2.852 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 6.792e-06/0.1662, allocations: 0 / 344.3 MB, free: 2.852 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06901/0.2352, allocations: 15.41 MB / 359.7 MB, free: 3.344 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.2355, allocations: 149.5 kB / 359.9 MB, free: 3.164 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008538/0.2363, allocations: 494.8 kB / 360.4 MB, free: 2.672 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002605/0.2366, allocations: 45.7 kB / 360.4 MB, free: 2.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003625/0.237, allocations: 363.9 kB / 360.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003317/0.2373, allocations: 315.5 kB / 361.1 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003918/0.2377, allocations: 174.5 kB / 361.2 MB, free: 1.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001909/0.2379, allocations: 382.8 kB / 361.6 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002006/0.2399, allocations: 0.7201 MB / 362.3 MB, free: 0.668 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002168/0.2421, allocations: 0.9265 MB / 363.3 MB, free: 15.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003932/0.2461, allocations: 1.666 MB / 364.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.2461, allocations: 0 / 364.9 MB, free: 13.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02376/0.2699, allocations: 5.351 MB / 370.3 MB, free: 8.527 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001525/0.2701, allocations: 63.41 kB / 370.3 MB, free: 8.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.044e-05/0.2702, allocations: 11.98 kB / 370.3 MB, free: 8.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03566/0.3058, allocations: 6.847 MB / 377.2 MB, free: 1.578 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007495/0.3066, allocations: 135.8 kB / 377.3 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2236/0.5303, allocations: 3.156 MB / 380.5 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.5322, allocations: 180.9 kB / 380.7 MB, free: 52.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001289/0.5323, allocations: 48.22 kB / 380.7 MB, free: 52.91 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.0004011/0.5327, allocations: 225.5 kB / 380.9 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001746/0.5329, allocations: 78.53 kB / 381 MB, free: 52.8 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02345/0.5564, allocations: 5.106 MB / 386.1 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.079e-05/0.5564, allocations: 10.03 kB / 386.1 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.125e-05/0.5565, allocations: 0 / 386.1 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.247e-05/0.5565, allocations: 3.938 kB / 386.1 MB, free: 52.12 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001489/0.558, allocations: 1.09 MB / 387.2 MB, free: 51.56 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.558, allocations: 1.219 kB / 387.2 MB, free: 51.56 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005335/0.5585, allocations: 88.92 kB / 387.3 MB, free: 51.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03256/0.5911, allocations: 6.795 MB / 394.1 MB, free: 50.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002138/0.5914, allocations: 29.94 kB / 394.1 MB, free: 50.15 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004941/0.5963, allocations: 3.049 MB / 397.2 MB, free: 48.11 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5963, allocations: 3.969 kB / 397.2 MB, free: 48.11 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02115/0.6175, allocations: 5.983 MB / 403.2 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002705/0.6178, allocations: 142.4 kB / 403.3 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.618, allocations: 24 kB / 403.3 MB, free: 42.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/0.6192, allocations: 175.4 kB / 403.5 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002552/0.6195, allocations: 96.88 kB / 403.6 MB, free: 42.16 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.279e-05/0.6196, allocations: 31.97 kB / 403.6 MB, free: 42.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003069/0.6199, allocations: 334.9 kB / 404 MB, free: 41.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.6199, allocations: 0 / 404 MB, free: 41.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006851/0.6206, allocations: 256 kB / 404.2 MB, free: 41.55 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.02192/0.6425, allocations: 6.566 MB / 410.8 MB, free: 34.96 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005919/0.6485, allocations: 2.176 MB / 412.9 MB, free: 32.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6485, allocations: 4.375 kB / 412.9 MB, free: 32.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002925/0.6515, allocations: 1.091 MB / 414 MB, free: 31.67 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007382/0.6522, allocations: 139 kB / 414.2 MB, free: 31.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04796/0.7002, allocations: 16.28 MB / 430.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.7005, allocations: 0.9388 MB / 431.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003409/0.7009, allocations: 56.75 kB / 431.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002577/0.7011, allocations: 263.3 kB / 431.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.7011, allocations: 0 / 431.7 MB, free: 13.77 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04313/0.7443, allocations: 28.34 MB / 460 MB, free: 1.379 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.7445, allocations: 234.1 kB / 460.3 MB, free: 1.125 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.88/3.625, allocations: 0 / 460.3 MB, free: 1.125 MB / 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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingNPN_OrGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches