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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001362/0.001362, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.001246/0.001246, allocations: 187.9 kB / 18.5 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.364/1.364, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.00148/0.00148, allocations: 56.14 kB / 280.7 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07756/0.07905, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Nor): time 0.01206/0.09114, allocations: 13.54 MB / 340.9 MB, free: 6.781 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02202/0.1132, allocations: 19.36 MB / 360.3 MB, free: 3.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.1154, allocations: 71.44 kB / 360.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002979/0.1184, allocations: 1.089 MB / 361.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006672/0.1251, allocations: 2.254 MB / 363.7 MB, free: 15.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.1299, allocations: 1.392 MB / 365.1 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.14, allocations: 6.25 MB / 371.3 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009581/0.141, allocations: 436.5 kB / 371.8 MB, free: 7.781 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001501/0.1426, allocations: 0.9602 MB / 372.7 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001453/0.144, allocations: 1.052 MB / 373.8 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003546/0.1444, allocations: 76 kB / 373.8 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003862/0.1483, allocations: 1.167 MB / 375 MB, free: 4.516 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004277/0.1487, allocations: 325.6 kB / 375.3 MB, free: 4.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001683/0.1504, allocations: 1.331 MB / 376.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1489/0.2993, allocations: 3.685 MB / 380.3 MB, free: 24.69 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.2993, allocations: 1.281 kB / 380.3 MB, free: 24.69 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.2994, allocations: 2.812 kB / 380.3 MB, free: 24.69 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001129/0.2995, allocations: 0 / 380.3 MB, free: 24.69 MB / 318.1 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.00571/0.3052, allocations: 3.581 MB / 383.9 MB, free: 22.7 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.3052, allocations: 9.625 kB / 383.9 MB, free: 22.7 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001145/0.3054, allocations: 95.95 kB / 384 MB, free: 22.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004491/0.3058, allocations: 383.7 kB / 384.4 MB, free: 22.46 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003937/0.3098, allocations: 2.56 MB / 387 MB, free: 21.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.309e-05/0.3098, allocations: 34.83 kB / 387 MB, free: 21.68 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001278/0.31, allocations: 50.78 kB / 387 MB, free: 21.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001436/0.3114, allocations: 0.7624 MB / 387.8 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.3114, allocations: 0 / 387.8 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.441e-05/0.3115, allocations: 20.2 kB / 387.8 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.485e-05/0.3115, allocations: 18.8 kB / 387.8 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.3133, allocations: 0.8606 MB / 388.7 MB, free: 21.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005207/0.3186, allocations: 2.978 MB / 391.7 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001638/0.3202, allocations: 0.7834 MB / 392.5 MB, free: 21.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001368/0.3216, allocations: 0.9629 MB / 393.4 MB, free: 21.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02386/0.3455, allocations: 30.13 MB / 423.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001147/0.3467, allocations: 0.5989 MB / 424.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=96): time 2.866e-06/0.3467, allocations: 0 / 424.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=99): time 0.01292/0.3596, allocations: 5.239 MB / 429.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.3597, allocations: 71.83 kB / 429.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003589/0.3633, allocations: 2.709 MB / 432.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000166/0.3635, allocations: 49.69 kB / 432.2 MB, free: 2.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001036/0.3645, allocations: 1.296 MB / 433.5 MB, free: 0.918 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002951/0.3648, allocations: 342.1 kB / 433.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003343/0.3652, allocations: 230.3 kB / 434.1 MB, free: 368 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001156/0.3653, allocations: 345.9 kB / 434.4 MB, free: 16 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.3665, allocations: 474 kB / 434.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001303/0.3678, allocations: 0.6463 MB / 435.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002525/0.3704, allocations: 1.13 MB / 436.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.614e-06/0.3704, allocations: 4.875 kB / 436.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.004153/0.3746, allocations: 1.975 MB / 438.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.3746, allocations: 12 kB / 438.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001564/0.3748, allocations: 124 kB / 438.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006694/0.3754, allocations: 267.7 kB / 439 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008883/0.3763, allocations: 200.4 kB / 439.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008615/0.385, allocations: 14.25 MB / 453.5 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001896/0.3869, allocations: 92.52 kB / 453.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002084/0.3871, allocations: 56 kB / 453.6 MB, free: 11.36 MB / 366.1 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.0009209/0.3881, allocations: 427.4 kB / 454 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005898/0.3887, allocations: 377.8 kB / 454.4 MB, free: 10.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.3938, allocations: 2.219 MB / 456.6 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.3938, allocations: 8 kB / 456.6 MB, free: 8.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.187e-06/0.3938, allocations: 8 kB / 456.6 MB, free: 8.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.3938, allocations: 3.984 kB / 456.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002343/0.3962, allocations: 1.562 MB / 458.2 MB, free: 6.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001502/0.3963, allocations: 112 kB / 458.3 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007213/0.3971, allocations: 131.3 kB / 458.4 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000634/0.3977, allocations: 271.8 kB / 458.7 MB, free: 6.152 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.3978, allocations: 47.92 kB / 458.8 MB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008648/0.4065, allocations: 14.24 MB / 473 MB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.4065, allocations: 0 / 473 MB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005669/0.4122, allocations: 2.552 MB / 475.5 MB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001088/0.4133, allocations: 488.5 kB / 476 MB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005358/0.4138, allocations: 25.3 kB / 476 MB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.415, allocations: 83.89 kB / 476.1 MB, free: 3.305 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003423/0.4153, allocations: 136 kB / 476.3 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.4155, allocations: 51.98 kB / 476.3 MB, free: 3.125 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002464/0.4179, allocations: 1.786 MB / 478.1 MB, free: 1.332 MB / 382.1 MB Notification: Performance of sort global known variables: time 3e-07/0.4179, allocations: 0 / 478.1 MB, free: 1.332 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001721/0.4197, allocations: 0.66 MB / 478.8 MB, free: 0.6719 MB / 382.1 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.006565/0.4262, allocations: 3.829 MB / 482.6 MB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.4308, allocations: 2.542 MB / 485.1 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.4308, allocations: 0 / 485.1 MB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.4334, allocations: 1.955 MB / 487.1 MB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002624/0.4361, allocations: 0.5192 MB / 487.6 MB, free: 7.625 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03653/0.4726, allocations: 22.58 MB / 0.4982 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001136/0.4738, allocations: 1.666 MB / 0.4999 GB, free: 13.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.4753, allocations: 395.4 kB / 0.5002 GB, free: 13.19 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001268/0.4766, allocations: 1.198 MB / 0.5014 GB, free: 11.99 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4766, allocations: 0 / 0.5014 GB, free: 11.99 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2602/0.7368, allocations: 66.21 MB / 0.5661 GB, free: 145.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/12.14, allocations: 15.36 kB / 0.5661 GB, free: 145.6 MB / 446.1 MB (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 --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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Nor/Nor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches