Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008505/0.0008505, allocations: 87.62 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003737/0.003737, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8442/0.8442, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 298.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.67e-05/1.852e-05, allocations: 2.281 kB / 298.4 MB, free: 3.523 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.1236/0.1236, allocations: 11.42 MB / 309.9 MB, free: 9.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01413/0.1377, allocations: 16.73 MB / 326.6 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002721/0.1405, allocations: 196.5 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002974/0.1434, allocations: 1.009 MB / 327.8 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007546/0.151, allocations: 2.368 MB / 330.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003959/0.1549, allocations: 1.394 MB / 331.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008216/0.1632, allocations: 6.493 MB / 338 MB, free: 7.035 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009163/0.1641, allocations: 245.1 kB / 338.3 MB, free: 6.766 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002072/0.1661, allocations: 1.414 MB / 339.7 MB, free: 5.348 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006584/0.1668, allocations: 0.7552 MB / 340.5 MB, free: 4.586 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001188/0.1669, allocations: 76 kB / 340.5 MB, free: 4.512 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003217/0.1701, allocations: 1.089 MB / 341.6 MB, free: 3.422 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002038/0.1703, allocations: 325.7 kB / 341.9 MB, free: 3.102 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008792/0.1712, allocations: 0.7204 MB / 342.7 MB, free: 2.379 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003926/0.1751, allocations: 3.717 MB / 346.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.1751, allocations: 0 / 346.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1752, allocations: 0 / 346.4 MB, free: 14.65 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.987e-05/0.1752, allocations: 0 / 346.4 MB, free: 14.65 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.003003/0.1782, allocations: 3.59 MB / 350 MB, free: 11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.1782, allocations: 11.98 kB / 350 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.292e-05/0.1783, allocations: 102.5 kB / 350.1 MB, free: 10.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002688/0.1786, allocations: 402.8 kB / 350.5 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002263/0.1808, allocations: 2.39 MB / 352.9 MB, free: 7.996 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.1809, allocations: 36.98 kB / 352.9 MB, free: 7.957 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.523e-05/0.181, allocations: 55.94 kB / 352.9 MB, free: 7.902 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009053/0.1819, allocations: 0.7577 MB / 353.7 MB, free: 7.141 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.1819, allocations: 3.938 kB / 353.7 MB, free: 7.137 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.476e-05/0.1819, allocations: 16 kB / 353.7 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.699e-05/0.1819, allocations: 19.98 kB / 353.7 MB, free: 7.102 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001042/0.183, allocations: 0.8592 MB / 354.6 MB, free: 6.246 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00295/0.1859, allocations: 2.779 MB / 357.4 MB, free: 3.41 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001/0.1869, allocations: 0.717 MB / 358.1 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008839/0.1878, allocations: 0.869 MB / 359 MB, free: 1.809 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01546/0.2033, allocations: 13.69 MB / 372.7 MB, free: 3.742 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008102/0.2041, allocations: 0.6035 MB / 373.3 MB, free: 3.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=96): time 2.956e-06/0.2041, allocations: 0 / 373.3 MB, free: 3.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=99): time 0.007398/0.2115, allocations: 4.53 MB / 377.8 MB, free: 14.54 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.2115, allocations: 76.33 kB / 377.9 MB, free: 14.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002831/0.2144, allocations: 2.717 MB / 380.6 MB, free: 11.71 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001325/0.2145, allocations: 41.7 kB / 380.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007478/0.2153, allocations: 1.304 MB / 381.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002287/0.2155, allocations: 345 kB / 382.3 MB, free: 10.02 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.2157, allocations: 226.4 kB / 382.5 MB, free: 9.797 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.848e-05/0.2158, allocations: 353.9 kB / 382.8 MB, free: 9.445 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007224/0.2166, allocations: 474 kB / 383.3 MB, free: 8.984 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007781/0.2173, allocations: 0.647 MB / 383.9 MB, free: 8.273 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001474/0.2188, allocations: 1.133 MB / 385.1 MB, free: 7.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.2188, allocations: 0 / 385.1 MB, free: 7.078 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002524/0.2213, allocations: 1.835 MB / 386.9 MB, free: 5.203 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.2214, allocations: 8 kB / 386.9 MB, free: 5.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.549e-05/0.2215, allocations: 124.7 kB / 387 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004279/0.2219, allocations: 272.3 kB / 387.3 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004503/0.2223, allocations: 195.7 kB / 387.5 MB, free: 4.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.2288, allocations: 13.17 MB / 400.7 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009271/0.2297, allocations: 92.02 kB / 400.8 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-05/0.2298, allocations: 60 kB / 400.8 MB, free: 6.129 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 (v.counter,$PRE.v.counter,vin2.counter,$PRE.vin2.counter,vin1.counter,$PRE.vin1.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin2.counter2,$PRE.vin2.counter2,vin2.T0,$PRE.vin2.T0,vin1.counter2,$PRE.vin1.counter2,vin1.T0,$PRE.vin1.T0,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000622/0.2305, allocations: 426.2 kB / 401.2 MB, free: 5.703 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002545/0.2307, allocations: 389.5 kB / 401.6 MB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002977/0.2337, allocations: 2.072 MB / 403.7 MB, free: 3.207 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.2337, allocations: 8 kB / 403.7 MB, free: 3.199 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.2337, allocations: 11.98 kB / 403.7 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.533e-06/0.2337, allocations: 3.984 kB / 403.7 MB, free: 3.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001216/0.2349, allocations: 1.387 MB / 405.1 MB, free: 1.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.228e-05/0.235, allocations: 116 kB / 405.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.2354, allocations: 135.8 kB / 405.3 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003791/0.2357, allocations: 268.3 kB / 405.6 MB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.064e-05/0.2358, allocations: 47.97 kB / 405.7 MB, free: 1.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005918/0.2417, allocations: 13.18 MB / 418.8 MB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.2417, allocations: 4.062 kB / 418.8 MB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003396/0.2451, allocations: 2.407 MB / 421.2 MB, free: 388 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007356/0.2458, allocations: 439.3 kB / 421.7 MB, free: 15.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001876/0.246, allocations: 23.98 kB / 421.7 MB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/0.2466, allocations: 79.89 kB / 421.8 MB, free: 15.85 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002937/0.2468, allocations: 144.8 kB / 421.9 MB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.194e-05/0.2469, allocations: 51.98 kB / 422 MB, free: 15.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001996/0.2489, allocations: 1.778 MB / 423.7 MB, free: 13.87 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2489, allocations: 0 / 423.7 MB, free: 13.87 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001199/0.2501, allocations: 0.6635 MB / 424.4 MB, free: 13.21 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,3,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004082/0.2542, allocations: 3.733 MB / 428.1 MB, free: 9.402 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002778/0.257, allocations: 2.44 MB / 430.6 MB, free: 6.809 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.257, allocations: 0 / 430.6 MB, free: 6.809 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/0.2585, allocations: 1.905 MB / 432.5 MB, free: 4.746 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001465/0.2599, allocations: 0.5207 MB / 433 MB, free: 4.219 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02325/0.2832, allocations: 17.84 MB / 450.9 MB, free: 2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000956/0.2842, allocations: 1.116 MB / 452 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000867/0.285, allocations: 391.4 kB / 452.4 MB, free: 476 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000897/0.2859, allocations: 1.203 MB / 453.6 MB, free: 15.26 MB / 426.7 MB Notification: Performance of SimCode: time 1.412e-06/0.2859, allocations: 0 / 453.6 MB, free: 15.26 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2245/0.5104, allocations: 71.22 MB / 0.5125 GB, free: 101.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.368/9.879, allocations: 8 kB / 0.5125 GB, free: 101.7 MB / 426.7 MB " [Timeout remaining time 650] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.053532119840384]