Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.001809/0.001809, allocations: 100.6 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.002097/0.002097, allocations: 192.1 kB / 18.51 MB, free: 4.508 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.69/1.69, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001517/0.001518, allocations: 51.91 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.108, allocations: 46.64 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.006768/0.1148, allocations: 4.696 MB / 332.1 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003256/0.1181, allocations: 1.261 MB / 333.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000858/0.119, allocations: 11.94 kB / 333.4 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005469/0.1196, allocations: 114.8 kB / 333.5 MB, free: 14.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.1208, allocations: 245.7 kB / 333.7 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.1219, allocations: 299.5 kB / 334 MB, free: 13.72 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001771/0.1237, allocations: 1.044 MB / 335 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006643/0.1243, allocations: 266.4 kB / 335.3 MB, free: 12.4 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001071/0.1254, allocations: 402.6 kB / 335.7 MB, free: 12 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.1265, allocations: 454.1 kB / 336.1 MB, free: 11.56 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003204/0.1268, allocations: 88 kB / 336.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004259/0.1273, allocations: 112 kB / 336.3 MB, free: 11.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002563/0.1275, allocations: 183.3 kB / 336.5 MB, free: 11.18 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006346/0.1282, allocations: 433.9 kB / 336.9 MB, free: 10.76 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001167/0.1294, allocations: 0.9579 MB / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.1294, allocations: 0 / 337.9 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.074e-06/0.1294, allocations: 4 kB / 337.9 MB, free: 9.793 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.85e-05/0.1294, allocations: 3.938 kB / 337.9 MB, free: 9.789 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.003055/0.1325, allocations: 1.211 MB / 339.1 MB, free: 8.508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.1326, allocations: 12.03 kB / 339.1 MB, free: 8.496 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001577/0.1327, allocations: 102.7 kB / 339.2 MB, free: 8.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.1329, allocations: 87.91 kB / 339.3 MB, free: 8.301 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006938/0.1336, allocations: 457.4 kB / 339.8 MB, free: 7.812 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.738e-05/0.1337, allocations: 57.69 kB / 339.8 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.1338, allocations: 64.36 kB / 339.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001432/0.1353, allocations: 0.6312 MB / 340.5 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.676e-05/0.1353, allocations: 0 / 340.5 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.995e-05/0.1354, allocations: 27.98 kB / 340.5 MB, free: 7.031 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.752e-05/0.1354, allocations: 16 kB / 340.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.1371, allocations: 0.6765 MB / 341.2 MB, free: 6.336 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.004333/0.1414, allocations: 2.339 MB / 343.6 MB, free: 3.848 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001627/0.1431, allocations: 0.5866 MB / 344.2 MB, free: 3.25 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008571/0.1439, allocations: 333.9 kB / 344.5 MB, free: 2.922 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.114e-05/0.144, allocations: 8.438 kB / 344.5 MB, free: 2.914 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001119/0.1451, allocations: 433.3 kB / 344.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of pre-optimization done (n=54): time 2.245e-06/0.1452, allocations: 0 / 344.9 MB, free: 2.465 MB / 286.1 MB Notification: Performance of matching and sorting (n=94): time 0.06861/0.2138, allocations: 15.4 MB / 360.3 MB, free: 2.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001195/0.2139, allocations: 141.5 kB / 360.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008279/0.2148, allocations: 494.8 kB / 360.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002442/0.2151, allocations: 49.7 kB / 361 MB, free: 2.254 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004178/0.2155, allocations: 367.9 kB / 361.3 MB, free: 1.887 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004617/0.216, allocations: 315.5 kB / 361.6 MB, free: 1.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005439/0.2165, allocations: 174.5 kB / 361.8 MB, free: 1.398 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002612/0.2168, allocations: 382.8 kB / 362.2 MB, free: 1.016 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002279/0.2191, allocations: 0.7163 MB / 362.9 MB, free: 308 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002422/0.2215, allocations: 0.9265 MB / 363.8 MB, free: 15.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00442/0.226, allocations: 1.666 MB / 365.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.183e-05/0.226, allocations: 0 / 365.5 MB, free: 13.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02335/0.2494, allocations: 5.339 MB / 370.8 MB, free: 8.172 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.708e-05/0.2495, allocations: 67.39 kB / 370.9 MB, free: 8.094 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/0.2495, allocations: 11.98 kB / 370.9 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03369/0.2832, allocations: 6.832 MB / 377.7 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008697/0.2842, allocations: 143.7 kB / 377.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2184/0.5026, allocations: 3.008 MB / 380.9 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/0.5047, allocations: 183.1 kB / 381.1 MB, free: 52.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.5049, allocations: 44.48 kB / 381.1 MB, free: 52.37 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.0005774/0.5055, allocations: 223.4 kB / 381.3 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002404/0.5057, allocations: 75.62 kB / 381.4 MB, free: 52.26 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02422/0.53, allocations: 5.096 MB / 386.5 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.131e-05/0.5301, allocations: 9.844 kB / 386.5 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.428e-05/0.5301, allocations: 0 / 386.5 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/0.5301, allocations: 9.125 kB / 386.5 MB, free: 51.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001967/0.5321, allocations: 1.094 MB / 387.6 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.5321, allocations: 0 / 387.6 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/0.5327, allocations: 94.69 kB / 387.7 MB, free: 51.04 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03362/0.5664, allocations: 6.796 MB / 394.5 MB, free: 49.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002486/0.5667, allocations: 26.88 kB / 394.5 MB, free: 49.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005071/0.5717, allocations: 3.028 MB / 397.6 MB, free: 47.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5718, allocations: 0 / 397.6 MB, free: 47.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02203/0.5938, allocations: 5.971 MB / 403.5 MB, free: 41.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002521/0.5941, allocations: 145.5 kB / 403.7 MB, free: 41.82 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002984/0.5944, allocations: 28.06 kB / 403.7 MB, free: 41.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.5959, allocations: 159.8 kB / 403.9 MB, free: 41.64 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003251/0.5963, allocations: 108.6 kB / 404 MB, free: 41.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001119/0.5964, allocations: 29.2 kB / 404 MB, free: 41.51 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004717/0.5969, allocations: 338.8 kB / 404.3 MB, free: 41.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5969, allocations: 0 / 404.3 MB, free: 41.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009572/0.5978, allocations: 257.1 kB / 404.6 MB, free: 40.93 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.02239/0.6202, allocations: 6.565 MB / 411.1 MB, free: 34.34 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005829/0.6261, allocations: 2.052 MB / 413.2 MB, free: 32.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.6262, allocations: 0 / 413.2 MB, free: 32.27 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003275/0.6295, allocations: 1.084 MB / 414.3 MB, free: 31.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009438/0.6304, allocations: 136.5 kB / 414.4 MB, free: 31.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05055/0.681, allocations: 15.97 MB / 430.4 MB, free: 14.88 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.6814, allocations: 0.9389 MB / 431.3 MB, free: 13.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003895/0.6818, allocations: 51.91 kB / 431.4 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003269/0.6822, allocations: 267.3 kB / 431.6 MB, free: 13.6 MB / 318.1 MB Notification: Performance of SimCode: time 1.403e-06/0.6822, allocations: 0 / 431.6 MB, free: 13.6 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05912/0.7413, allocations: 29.05 MB / 460.7 MB, free: 476 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.58/13.32, allocations: 0 / 460.7 MB, free: 476 kB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/HeatingPNP_NORGate/HeatingPNP_NORGate.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches