Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.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.HeatingPNP_NORGate,fileNamePrefix="Modelica_3_2_3_cpp_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_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate",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.0008753/0.0008754, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.301/1.301, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007276/0.0007277, allocations: 96.92 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002779/0.0002779, allocations: 12 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2068, allocations: 47.58 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate): time 0.003367/0.2102, allocations: 4.069 MB / 379.2 MB, free: 42.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002008/0.2122, allocations: 1.234 MB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005116/0.2127, allocations: 10.41 kB / 380.5 MB, free: 41.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.213, allocations: 79.27 kB / 380.6 MB, free: 41.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004066/0.2134, allocations: 213.9 kB / 380.8 MB, free: 40.92 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00055/0.214, allocations: 208.9 kB / 381 MB, free: 40.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006893/0.2147, allocations: 0.9479 MB / 381.9 MB, free: 40.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003038/0.215, allocations: 214.3 kB / 382.1 MB, free: 40.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003338/0.2153, allocations: 346.7 kB / 382.5 MB, free: 39.86 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.2157, allocations: 404.8 kB / 382.9 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.2158, allocations: 44.12 kB / 382.9 MB, free: 39.59 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001996/0.216, allocations: 67.91 kB / 383 MB, free: 39.58 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.2161, allocations: 146.1 kB / 383.1 MB, free: 39.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003076/0.2164, allocations: 399.7 kB / 383.5 MB, free: 39.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004919/0.2169, allocations: 0.7194 MB / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.2169, allocations: 0.8438 kB / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2169, allocations: 0 / 384.2 MB, free: 38.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.2169, allocations: 0 / 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.001974/0.2189, allocations: 1.115 MB / 385.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/0.219, allocations: 8.969 kB / 385.4 MB, free: 37.77 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001063/0.2191, allocations: 106.8 kB / 385.5 MB, free: 37.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.2192, allocations: 84.91 kB / 385.5 MB, free: 37.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004565/0.2197, allocations: 459.2 kB / 386 MB, free: 37.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/0.2197, allocations: 46.84 kB / 386 MB, free: 37.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.636e-05/0.2198, allocations: 60.67 kB / 386.1 MB, free: 37.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.2211, allocations: 0.6703 MB / 386.8 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.2211, allocations: 0 / 386.8 MB, free: 36.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.38e-05/0.2212, allocations: 23 kB / 386.8 MB, free: 36.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.2212, allocations: 13.75 kB / 386.8 MB, free: 36.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.2227, allocations: 0.7325 MB / 387.5 MB, free: 36.18 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.002952/0.2257, allocations: 2.382 MB / 389.9 MB, free: 33.64 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.2269, allocations: 0.6373 MB / 390.6 MB, free: 33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006323/0.2276, allocations: 362.9 kB / 390.9 MB, free: 32.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.55e-05/0.2276, allocations: 12.38 kB / 390.9 MB, free: 32.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008161/0.2284, allocations: 453.4 kB / 391.4 MB, free: 32.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=54): time 2.344e-06/0.2285, allocations: 0 / 391.4 MB, free: 32.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=94): time 0.06334/0.2918, allocations: 16.73 MB / 408.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.671e-05/0.2919, allocations: 145.5 kB / 408.2 MB, free: 15.16 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004856/0.2924, allocations: 490.8 kB / 408.7 MB, free: 14.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.2925, allocations: 49.7 kB / 408.8 MB, free: 14.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.2927, allocations: 368 kB / 409.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001954/0.2929, allocations: 311.5 kB / 409.4 MB, free: 13.95 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.159e-05/0.293, allocations: 16 kB / 409.4 MB, free: 13.93 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.793e-05/0.2931, allocations: 382.8 kB / 409.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.2949, allocations: 0.7944 MB / 410.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001839/0.2968, allocations: 1.005 MB / 411.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0036/0.3004, allocations: 1.807 MB / 413.4 MB, free: 9.781 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3004, allocations: 4 kB / 413.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.02077/0.3212, allocations: 5.624 MB / 419.1 MB, free: 4.125 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.114e-05/0.3213, allocations: 63.41 kB / 419.1 MB, free: 4.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/0.3213, allocations: 8 kB / 419.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03273/0.354, allocations: 7.324 MB / 426.4 MB, free: 12.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.3548, allocations: 171.7 kB / 426.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006544/0.3613, allocations: 3.208 MB / 429.8 MB, free: 9.273 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001678/0.3631, allocations: 219.8 kB / 430 MB, free: 9.059 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.3632, allocations: 47.97 kB / 430.1 MB, free: 9.012 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.0003823/0.3636, allocations: 217.7 kB / 430.3 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001504/0.3637, allocations: 79.05 kB / 430.4 MB, free: 8.711 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02191/0.3857, allocations: 5.466 MB / 435.8 MB, free: 3.215 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.749e-05/0.3857, allocations: 16 kB / 435.9 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3857, allocations: 0 / 435.9 MB, free: 3.199 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.737e-05/0.3857, allocations: 7.969 kB / 435.9 MB, free: 3.191 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001501/0.3872, allocations: 1.095 MB / 437 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.905e-06/0.3873, allocations: 0 / 437 MB, free: 2.047 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005513/0.3878, allocations: 119.9 kB / 437.1 MB, free: 1.93 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03332/0.4212, allocations: 7.285 MB / 444.4 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002441/0.4215, allocations: 23.97 kB / 444.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005629/0.4271, allocations: 3.09 MB / 447.5 MB, free: 7.461 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.4272, allocations: 4 kB / 447.5 MB, free: 7.457 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02448/0.4516, allocations: 6.417 MB / 453.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002586/0.4519, allocations: 144.1 kB / 454 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002901/0.4523, allocations: 24.06 kB / 454.1 MB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001527/0.4538, allocations: 215.7 kB / 454.3 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000307/0.4541, allocations: 96.84 kB / 454.4 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001028/0.4542, allocations: 35.97 kB / 454.4 MB, free: 496 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004226/0.4547, allocations: 330.9 kB / 454.7 MB, free: 168 kB / 330.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4547, allocations: 0 / 454.7 MB, free: 168 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008422/0.4555, allocations: 256 kB / 455 MB, free: 15.91 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.025/0.4805, allocations: 7.001 MB / 462 MB, free: 8.871 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007055/0.4876, allocations: 2.317 MB / 464.3 MB, free: 6.531 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/0.4877, allocations: 4.375 kB / 464.3 MB, free: 6.527 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003462/0.4911, allocations: 1.144 MB / 465.4 MB, free: 5.379 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009199/0.4921, allocations: 118.2 kB / 465.6 MB, free: 5.266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03131/0.5234, allocations: 10.25 MB / 475.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.5239, allocations: 0.9389 MB / 476.7 MB, free: 9.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003992/0.5243, allocations: 259.3 kB / 477 MB, free: 9.656 MB / 362.7 MB Notification: Performance of SimCode: time 1.894e-06/0.5243, allocations: 0 / 477 MB, free: 9.656 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.72/4.245, allocations: 18.68 MB / 495.7 MB, free: 6.945 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Analog_Examples_HeatingPNP_NORGate.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.HeatingPNP_NORGate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches