Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000804/0.000804, allocations: 76.08 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009933/0.0009933, allocations: 153.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8619/0.8619, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.857e-06/1.001e-05, allocations: 2.281 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.007457/0.007467, allocations: 11.96 MB / 330.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01614/0.02361, allocations: 17.54 MB / 347.9 MB, free: 8.715 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001395/0.025, allocations: 193.8 kB / 348.1 MB, free: 8.523 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001787/0.02679, allocations: 1.036 MB / 349.2 MB, free: 7.48 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00414/0.03093, allocations: 2.401 MB / 351.6 MB, free: 5.059 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002343/0.03327, allocations: 1.437 MB / 353 MB, free: 3.617 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005197/0.03847, allocations: 6.64 MB / 359.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003314/0.0388, allocations: 241 kB / 359.9 MB, free: 12.68 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.04003, allocations: 1.535 MB / 361.4 MB, free: 11.14 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006084/0.04063, allocations: 0.7901 MB / 362.2 MB, free: 10.35 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.499e-05/0.04073, allocations: 76 kB / 362.3 MB, free: 10.28 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001593/0.04232, allocations: 1.198 MB / 363.5 MB, free: 9.078 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.04248, allocations: 325.6 kB / 363.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004576/0.04294, allocations: 0.7204 MB / 364.5 MB, free: 8.035 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002603/0.04554, allocations: 3.69 MB / 368.2 MB, free: 4.332 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.04555, allocations: 4 kB / 368.2 MB, free: 4.328 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.04555, allocations: 0 / 368.2 MB, free: 4.328 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.142e-05/0.04557, allocations: 4 kB / 368.2 MB, free: 4.324 MB / 330.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.002755/0.04832, allocations: 3.563 MB / 371.8 MB, free: 0.707 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.04836, allocations: 8.922 kB / 371.8 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.145e-05/0.04845, allocations: 98.5 kB / 371.9 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.04869, allocations: 393.5 kB / 372.3 MB, free: 212 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002228/0.05092, allocations: 2.375 MB / 374.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.05095, allocations: 37 kB / 374.7 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003197/0.05127, allocations: 59.89 kB / 374.7 MB, free: 13.64 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008727/0.05214, allocations: 0.7538 MB / 375.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.05215, allocations: 0 / 375.5 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.619e-05/0.0522, allocations: 23.98 kB / 375.5 MB, free: 12.85 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.53e-05/0.05221, allocations: 19.98 kB / 375.5 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001019/0.05323, allocations: 0.8553 MB / 376.4 MB, free: 11.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002947/0.05618, allocations: 2.763 MB / 379.1 MB, free: 9.156 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009937/0.05717, allocations: 0.7285 MB / 379.9 MB, free: 8.418 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008739/0.05804, allocations: 0.872 MB / 380.7 MB, free: 7.543 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01477/0.07282, allocations: 13.62 MB / 394.4 MB, free: 9.539 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007096/0.07353, allocations: 0.6035 MB / 395 MB, free: 8.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=96): time 2.435e-06/0.07353, allocations: 0 / 395 MB, free: 8.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=99): time 0.006644/0.08017, allocations: 4.525 MB / 399.5 MB, free: 4.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.08021, allocations: 68.41 kB / 399.6 MB, free: 4.254 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002053/0.08227, allocations: 2.7 MB / 402.3 MB, free: 1.539 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.11e-05/0.08232, allocations: 45.7 kB / 402.3 MB, free: 1.488 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009489/0.08327, allocations: 1.3 MB / 403.6 MB, free: 188 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001867/0.08345, allocations: 353.1 kB / 403.9 MB, free: 15.83 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000214/0.08367, allocations: 230.4 kB / 404.2 MB, free: 15.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/0.08375, allocations: 345.9 kB / 404.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006915/0.08444, allocations: 478 kB / 405 MB, free: 14.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007618/0.0852, allocations: 0.6547 MB / 405.6 MB, free: 14.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.08666, allocations: 1.129 MB / 406.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.08666, allocations: 0 / 406.8 MB, free: 12.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002121/0.08878, allocations: 1.827 MB / 408.6 MB, free: 11.02 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.0888, allocations: 8.531 kB / 408.6 MB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.872e-05/0.08889, allocations: 131.9 kB / 408.7 MB, free: 10.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004007/0.08929, allocations: 268.4 kB / 409 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000431/0.08972, allocations: 195.7 kB / 409.2 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005868/0.09559, allocations: 13.18 MB / 422.4 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005575/0.09614, allocations: 92.02 kB / 422.4 MB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.107e-05/0.09623, allocations: 60 kB / 422.5 MB, free: 11.93 MB / 394.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.0004939/0.09672, allocations: 421.7 kB / 422.9 MB, free: 11.5 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002303/0.09695, allocations: 397.5 kB / 423.3 MB, free: 11.11 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00292/0.09987, allocations: 2.048 MB / 425.4 MB, free: 9.016 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.09987, allocations: 8 kB / 425.4 MB, free: 9.008 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.09988, allocations: 4 kB / 425.4 MB, free: 9.004 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.09989, allocations: 3.984 kB / 425.4 MB, free: 9 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001108/0.101, allocations: 1.39 MB / 426.8 MB, free: 7.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.424e-05/0.1011, allocations: 123.9 kB / 426.9 MB, free: 7.449 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003391/0.1014, allocations: 135.8 kB / 427 MB, free: 7.316 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003434/0.1018, allocations: 256.3 kB / 427.3 MB, free: 7.035 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.723e-05/0.1018, allocations: 47.97 kB / 427.3 MB, free: 6.988 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005683/0.1075, allocations: 13.18 MB / 440.5 MB, free: 8.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.1075, allocations: 3.984 kB / 440.5 MB, free: 8.656 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002878/0.1104, allocations: 2.403 MB / 442.9 MB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005348/0.1109, allocations: 431.3 kB / 443.3 MB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001721/0.1111, allocations: 23.98 kB / 443.3 MB, free: 5.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004984/0.1116, allocations: 79.89 kB / 443.4 MB, free: 5.676 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002661/0.1119, allocations: 144.7 kB / 443.6 MB, free: 5.535 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.414e-05/0.1119, allocations: 47.98 kB / 443.6 MB, free: 5.488 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001534/0.1135, allocations: 1.774 MB / 445.4 MB, free: 3.707 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1135, allocations: 0 / 445.4 MB, free: 3.707 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001374/0.1148, allocations: 0.6595 MB / 446 MB, free: 3.047 MB / 410.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.1368/0.2516, allocations: 3.715 MB / 449.8 MB, free: 124.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002847/0.2545, allocations: 2.451 MB / 452.2 MB, free: 123.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2545, allocations: 3.844 kB / 452.2 MB, free: 123.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001255/0.2557, allocations: 1.897 MB / 454.1 MB, free: 121.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001672/0.2574, allocations: 0.6102 MB / 454.7 MB, free: 121.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01623/0.2736, allocations: 17.75 MB / 472.5 MB, free: 107.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/0.2741, allocations: 1.111 MB / 473.6 MB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006508/0.2748, allocations: 391 kB / 474 MB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005977/0.2754, allocations: 1.195 MB / 475.2 MB, free: 105.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/0.2754, allocations: 0 / 475.2 MB, free: 105.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0935/0.3689, allocations: 70.83 MB / 0.5332 GB, free: 34.99 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.026/9.395, allocations: 15.19 kB / 0.5332 GB, free: 34.98 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor_fmu --startTime=0 --stopTime=5 --stepSize=0.000997606 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nor.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 11.660752196796238]